home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
rbbs_pc
/
mplus202.zip
/
202-TXT.ZIP
/
RBBSQWK.BAT
< prev
Wrap
DOS Batch File
|
1992-08-15
|
2KB
|
38 lines
:
: RBBSQWK.BAT (Optional) - Called by MailMan, to prepare QWK packet for
: downloading. If you allow your users to choose
: archive methods, MailMan will have already created
: the .QWK by the time this batch file is executed.
:
: First command line parameter is base file name
: Second command line parameter is archive method ZIP, ARJ, LZH, or ARC
: Third command line parameter is node number (not used).
:
: Last updated for distribution 12/23/91 - Morrow & Wilson
:
: Compress the .QWK packet if it doesn't already exist.
: ---------------------------------------------------------------------------
if exist %1.qwk GOTO END
if (%2)==(ZIP) pkzip -m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
if (%2)==(ARJ) arj a %1.qwk *.dat *.ndx ???log door.id news blt-*.*
if (%2)==(LZH) lharc a -m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
if (%2)==(ARC) GOTO ARC
GOTO END
:ARC
: ---------------------------------------------------------------------------
: The old PKARC archiver does not allow you to specify files on the command
: line that don't physically exist. So for this archive method, we'll do a
: check against each individual component of the package prior to attempting
: to archive it. The "-oc" in the command line specifies "old compatibility",
: the "Crunch" method.
: ----------------------------------------------------------------------------
if exist *.dat pkarc -oc a %1.qwk *.dat
if exist *.ndx pkarc -oc a %1.qwk *.ndx
if exist ???log pkarc -oc a %1.qwk ???log
if exist door.id pkarc -oc a %1.qwk door.id
if exist news pkarc -oc a %1.qwk news
if exist blt-*.* pkarc -oc a %1.qwk blt-*.*
:END